//
//  AY_ReadMenu.h
//  AiYue
//
//  Created by mac on 2023/10/18.
//

#import <UIKit/UIKit.h>
#import "AY_ReadTopBar.h"
#import "AY_ReadBottomTool.h"
#import "AY_ReadChapterView.h"

@class AY_ReadMenu;
NS_ASSUME_NONNULL_BEGIN
@protocol SXReadTopBarDelegate;
@protocol AY_ReadBottomToolDelegate;
@protocol SXReadCatalogViewDelegate;

@protocol SXMenuViewDelegate <NSObject,SXReadTopBarDelegate,AY_ReadBottomToolDelegate,SXReadCatalogViewDelegate>
// 隐藏操作盘
-(void)cancelShowMenu:(AY_ReadMenu *)menu;
-(void)colorChange;
-(void)huyanChange;
-(void)brightnessChange;
//显示音频播放view
-(void)showAudioView;
@end

@interface AY_ReadMenu : UIView
-(void)showInView:(UIView *)view;
-(void)dismiss;
-(void)showInView:(UIView *)view complete:(void(^)(void))complete;
-(void)dismissComplete:(void(^)(void))complete;

@property (nonatomic,weak) id<SXMenuViewDelegate> delegate;
@property (nonatomic,strong) AY_ReadTopBar *topBar;
@property (nonatomic,strong) AY_ReadBottomTool *bottomTool;
@property (nonatomic,strong) NSArray <ReadChapterModel *>*charpters;
@property (nonatomic,strong) BookModel *bookModel;
@property (nonatomic, strong) UserInfo * userInfoModel;
@property (nonatomic,assign) NSInteger currentChapter;
@property (nonatomic,strong) NSString *isEdit;
@end

NS_ASSUME_NONNULL_END
